package com.kele.mapper;

import com.kele.entity.Bookinfo;
import com.kele.entity.Document;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Version 2019
 * @Author:kele
 * @Date:2020/11/16
 * @Content:
 * @Description：
 */
@Mapper
@Component
public interface DocumentMapper {

    //查找所有文档信息
    List<Document> getAll();

    //id查询
    Document findById(int document_id);

     List<Document> getDocumentByCustName(String cust_name);//通过客户名称查询

    public boolean addDocument(Document document);//添加

    public boolean editDocument(Document document);//修改

    public boolean delDocument(int document_id);//删除

}
